<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
        <title>For a Fair Go | Go Gecko</title>
        <meta name="robots" content="noindex,nofollow" />

        <meta http-equiv="description" content="Capped commissions ... you deserve it. Browse our offices, latest listings, sales, and find information for listing your property." />
        <meta http-equiv="keywords" content="" />
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <meta http-equiv="cache-control" content="no-cache" />
        <meta http-equiv="pragma" content="no-cache" />
        <meta http-equiv="expires" content="-1" />

        <link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
        <link type="text/css" href="<?php echo base_url(); ?>css/template.css" rel="stylesheet" />
        <link type="text/css" href="<?php echo base_url(); ?>css/menu.css" rel="stylesheet" />
        <link type="text/css" href="<?php echo base_url(); ?>css/autocomplete.css" rel="stylesheet" />
        <link type="text/css" href="<?php echo base_url(); ?>css/result.css" rel="stylesheet" />
        <link type="text/css" href="<?php echo base_url(); ?>css/coin-slider-styles.css" rel="stylesheet" />
        <link type="text/css" href="<?php echo base_url(); ?>css/jquery-ui-1.9.0.custom.min.css" rel="stylesheet" />

        <?php if (isset($cssLinks)) echo $cssLinks; ?>


        <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/jquery-ui-1.9.0.custom.min.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/superfish.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/supersubs.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/suckerfish.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/autocomplete.js"></script>
        <script type="text/javascript" src="<?php echo base_url(); ?>js/coin-slider.min.js"></script>


        <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBD6K693C64UOIUryWW6sRepij-C7Sn3D8&sensor=false"></script>

        <script>
            $(document).ready(function() {
                showCompMsgs();
                $("ul.sf-menu").supersubs({
                    minWidth: 9.6, // minimum width of sub-menus in em units
                    maxWidth: 9.6, // maximum width of sub-menus in em units
                    extraWidth: 1                                  // extra width can ensure lines don't sometimes turn over
                            // due to slight rounding differences and font-family
                }).superfish({
                    delay: 400, // delay on mouseout
                    animation: {opacity: 'show', height: 'show'}, // fade-in and slide-down animation
                    speed: 'fast', // faster animation speed
                    autoArrows: false, // disable generation of arrow mark-up
                    dropShadows: false                              // disable drop shadows
                });

            });

            function removeCompMsgs() {
                $("[id^=cmsg]").each(function() {
                    var target = $(this).attr("id").substring(4);
                    $("[id$=" + target + "]").not("[id^=cmsg]").removeClass("error");
                    var msg = $(this).val();
                    $("[id=" + target + "]").next('img.error').remove();
                    var icon = document.createElement("img");
                    $(icon).addClass("mandatory");
                    $(icon).attr("src", "<?php echo base_url(); ?>img/sev/required.jpg");
                    $(icon).attr("title", 'This is a required value');
                    $("[id$=" + target + "]").not("[id^=cmsg]").after(icon);

                });
                $("[id^=cmsg]").remove();
            }

            function showCompMsgs() {
                $("[id^=cmsg]").each(function() {
                    var target = $(this).attr("id").substring(4); /* everything after 'cmsg' */
                    var msg = $(this).val();
                    $("[id=" + target + "]").next('img.mandatory').remove();
                    $("[id$=" + target + "]").not("[id^=cmsg]").addClass("error");
                    var icon = document.createElement("img");
                    $(icon).addClass("error");
                    $(icon).attr("src", "<?php echo base_url(); ?>img/sev/error.jpg");
                    $(icon).attr("title", msg);
                    $("[id$=" + target + "]").not("[id^=cmsg]").after(icon);
                });
                if ($('img.mandatory').length == 0) {
                    $(".mandatory").not("img.mandatory").each(function() {
                        var nextEl = $(this).next();
                        if (!$(nextEl).hasClass("error")) {
                            var icon = document.createElement("img");
                            $(icon).addClass("mandatory");
                            $(icon).attr("src", "<?php echo base_url(); ?>img/sev/required.jpg");
                            $(icon).attr("title", "This is a required value");
                            $(this).after(icon);
                        }
                    });
                }
            }
        </script>
        <script type="text/javascript">
            //        $(function(){
            //            setAutoComplete("search", "results", "<?php echo site_url('home/ajax_search?part=') ?>");
            //        });


            function autocomplate(id, hidden_id) {
                $("#" + id).autocomplete({
                    delay: 100,
                    source: function(request, response) {
                        $.ajax({
                            url: "<?php echo site_url('home/ajax_search?part=') ?>" + request.term,
                            dataType: 'json',
                            success: function(json) {
                                response($.map(json, function(item) {
                                    return item
                                }));
                                return false
                            }
                        });
                    },
                    select: function(event, ui) {
                        $("#" + hidden_id).val(ui.item.values);
                    },
                    focus: function(event, ui) {
                        return false;
                    }
                });
            }
            $(document).ready(function() {
                $("#search").autocomplete({
                    delay: 100,
                    source: function(request, response) {
                        $.ajax({
                            url: "<?php echo site_url('home/ajax_search?part=') ?>" + request.term,
                            dataType: 'json',
                            success: function(json) {
                                response($.map(json, function(item, key) {
                                    return {
                                        label: item,
                                        values: key
                                    }
                                }));
                                return false
                            }
                        });
                    },
                    select: function(event, ui) {
                        $("#keyword").val(ui.item.values);
                    },
                    focus: function(event, ui) {
                        return false;
                    }
                });

                $('#search-form').submit(function() {

                    var keyword = $('#keyword').val();
                    if (keyword != '')
                        window.location.href = '<?php echo site_url('offices/find') ?>/' + keyword;
                    else
                        window.location.href = '<?php echo site_url('offices/find') ?>';
                    return false;
                })
            });
        </script>
        <script>$(document).ready(function() {
                $('#games').coinslider({ width: 610,height: 315,hoverPause: true, delay: 5000,links : true,navigation: false });
            });
        </script>
    </head>
    <body>

        <div class="wrapper1">
            <div class="wrapper">
                <div id="success-dialog-modal" title="Success">
                    <div class="showSuccess" style=" text-align: center; margin-top:15px"></div>
                </div>
                <script>
                    $("#success-dialog-modal").dialog({
                        autoOpen: false,
                        width: 400,
                        height: 100,
                        modal: true,
                        resizable: false,
                    });
                </script>
                <?php
                if (isset($fielderrors)) {
                    foreach (array_keys($fielderrors) as $fieldid) {
                        echo '<input type="hidden" id="cmsg' . $fieldid . '" value="' . $fielderrors[$fieldid] . '"/>';
                    }
                }
                ?>
                <div id="error-dialog-modal" title="Error" style="padding-bottom: 15px">
                    <div class="showError" style=" text-align: center;"></div>
                </div>
                <script>
                    $("#error-dialog-modal").dialog({
                        autoOpen: false,
                        width: 400,
                        height: 100,
                        modal: true,
                        resizable: false

                    });
                </script>

                <div class="top">
                    <div class="logo">
                        <?php echo anchor('home', 'Go Gecko'); ?>
                    </div>
                    <div class="topright">
                        <div class="commission">
                            <p>Capped Commissions</p>
                        </div>
                        <div class="locator">
                            <div class="ilocator">
                                <h4>Office Locator</h4>
                                <div>
                                    <form action="" id="search-form">
                                        <input type="text" name="name" id="search" value=""/>
                                        <input type="hidden" name="keyword" id="keyword" value=""/>
                                        <div id="results"></div>
                                        <input type="submit" />
                                    </form>
                                </div>
                                <p>
                                    <img src="<?php echo base_url(); ?>img/arrow.png" alt=""
                                         style="padding-right: 7px; vertical-align: middle; padding-bottom: 6px;" />
                                         <?php echo anchor('offices/find', 'Show all offices'); ?>
                                </p>
                            </div>
                            <div class="socialmedia">
                                <a href="http://www.facebook.com/GoGeckoAustralia" target="_blank"><img src="<?php echo base_url(); ?>img/fb.jpg" alt=""
                                                                                                        style="vertical-align: middle;" /></a><a href="http://twitter.com/@GoGeckoAust" target="_blank"><img
                                        src="<?php echo base_url(); ?>img/twit.jpg" alt="" style="vertical-align: middle;" /></a>
                            </div>
                            <div class="clearer"></div>
                        </div>
                    </div>
                    <div class="clearer"></div>
                </div>


                <div class="mainmenu">
                    <ul class="sf-menu sf-js-enabled">
                        <li class="<?php echo $menu_config[0] ?>"><?php echo anchor('home', 'Home'); ?></li>
                        <li class="<?php echo $menu_config[1] ?>">
                            <?php echo anchor('selling/gogecko', 'Selling'); ?>
                            <ul class="sub-menu" style="float:none;display:none;visibility:hidden;min-width:188px;">
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('selling/gogecko', 'Selling with Go Gecko'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('selling/sold', 'Properties Sold'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('selling/appraisal', 'Request an Appraisal'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('selling/presenting', 'Presenting your Property'); ?>
                                </li>
                            </ul>
                        </li>
                        <li class="<?php echo $menu_config[2] ?>">
                            <?php echo anchor('buying/listings', 'Buying'); ?>
                        </li>
                        <li class="<?php echo $menu_config[3] ?>">
                            <?php echo anchor('landlord/propertymanagement', 'Landlord'); ?>
                            <ul class="sub-menu" style="float:none;display:none;visibility:hidden;min-width: 172px;">
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('landlord/propertymanagement', 'Property Management'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('landlord/appraisal', 'Request an Appraisal'); ?>
                                </li>
                            </ul>
                        </li>
                        <li class="<?php echo $menu_config[4] ?>">
                            <?php echo anchor('tenant/information', 'Tenant'); ?>
                            <ul class="sub-menu" style="float:none;display:none;visibility:hidden;min-width: 172px;">
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('tenant/rentals', 'Properties for Rent'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('tenant/leased', 'Properties Leased'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('tenant/maintenance', 'Maintenance Request'); ?>
                                </li>
                                <li style="white-space: normal; float:left;width:100%;">
                                    <?php echo anchor('tenant/information', 'Tenant Information'); ?>
                                </li>
                            </ul>
                        </li>
                        <li class="<?php echo $menu_config[5] ?>"><?php echo anchor('offices/find', 'Offices'); ?></li>
                        <li class="<?php echo $menu_config[6] ?>"><?php echo anchor('finance', 'Finance'); ?></li>
                        <li class="<?php echo $menu_config[7] ?>"><?php echo anchor('aboutus', 'About Us'); ?></li>
                        <li class="<?php echo $menu_config[8] ?>"><?php echo anchor('contactus', 'Contact Us'); ?></li>
                        <li class="join"><a href="http://www.gogeckofranchise.com.au/">Join Go Gecko</a></li>
                    </ul>
                    <div class="clearer"></div>
                </div>

                <?php echo $body; ?>

            </div>

            <div class="bottomarea">
                <div class="wrapper">
                    <div class="bottom">
                        <div class="module navigation">
                            <h3>Navigation</h3>
                            <ul>
                                <li><?php echo anchor('selling/gogecko', 'Selling'); ?></li>
                                <li><?php echo anchor('offices/find', 'Offices'); ?></li>
                                <li><?php echo anchor('buying/listings', 'Buying'); ?></li>
                                <li><?php echo anchor('finance', 'Finance'); ?></li>
                                <li><?php echo anchor('landlord/propertymanagement', 'Landlord'); ?></li>
                                <li><?php echo anchor('aboutus', 'About Us'); ?></li>
                                <li><?php echo anchor('tenant/information', 'Tenant'); ?></li>
                                <li><?php echo anchor('contactus', 'Contact Us'); ?></li>
                            </ul>
                        </div>
                        <div class="module admin">
                            <h3>Admin</h3>
                            <ul>
                                <li class="mail"><a href="http://apps.rackspace.com/">Staff Mail</a></li>
                                <li class="intranet"><a href="http://gogeckointranet.com.au/">Intranet</a></li>
                            </ul>
                        </div>
                        <div class="module connect">
                            <h3>Connect with Go Gecko</h3>
                            <table>
                                <tr>
                                    <td><a href="http://www.facebook.com/GoGeckoAustralia" target="_blank"><img src="<?php echo base_url(); ?>img/facebook.png" alt=""
                                                                                                                style="vertical-align: middle; padding: 0px 10px 0px 0px;" />Like
                                            us on Facebook</a></td>
                                    <td><a href="http://twitter.com/@GoGeckoAust" target="_blank"><img src="<?php echo base_url(); ?>img/twitter.png" alt=""
                                                                                                       style="vertical-align: middle; padding: 0px 10px 0px 0px;" />Follow
                                            us on Twitter</a></td>
                                </tr>

                                <tr>
                                    <td><a href="<?= site_url('news/latest') ?>"><img src="<?php echo base_url(); ?>img/news.png" alt=""
                                                                                      style="vertical-align: middle; padding: 0px 10px 0px 0px;" />Get
                                            the latest News</a></td>
                                    <td><a href="<?= site_url('offices/find') ?>"><img src="<?php echo base_url(); ?>img/find.png" alt=""
                                                                                       style="vertical-align: middle; padding: 0px 10px 0px 0px;" />Find
                                            on Office</a></td>
                                </tr>

                            </table>
                        </div>
                        <div class="clearer"></div>
                    </div>
                    <div class="footer">
                        <img src="<?php echo base_url(); ?>img/logo-footer.png" alt=""
                             style="vertical-align: middle; padding-right: 20px;" />Copyright
                        2013 Go Gecko | Designed &amp; Developed by <a target="_blank"
                                                                       href="http://www.pragmaticsystems.com.au/">Pragmatic Systems</a>
                    </div>
                </div>
            </div>

        </div>

    </body>
</html>
